package example;

public class Rectangle extends Shape {
	private double width;
	private double height;

	public Rectangle() {
		this(1, 1);
	}

	public Rectangle(double width, double height) {
		this.width = width;
		this.height = height;
	}

	public double getWidth() {
		return width;
	}

	public void setWidth(double width) {
		this.width = width;
	}

	public double getHeight() {
		return height;
	}

	public void setHeight(double height) {
		this.height = height;
	}

	public double findArea() {
		return width * height;
	}

	public double findPerimeter() {

		return 2 * (width + height);
	}

}
